<?php
namespace app\controllers;
use Yii;
use yii\web\Controller;
use app\controllers\CommonController;

class IndexController extends CommonController
{
    public function actionIndex()
    {
        //继承CommonController，传递view中的params['menu']
        $this->layout="layout1.php";
        return $this->render('index');
    }
}

